
.text
.global _start
_start:
    ldr sp, =1024 * 4
    bl close_watch_dog
    bl init_sdram

    bl copy_main_code_nand2sdram

    ldr sp, =0x34000000       @0x30000000+64*1024*1024 64M position
    ldr lr, =halt_loop        @set return_address
    ldr pc, =main             @jump to main,run on sdram.

halt_loop:
    b halt_loop
